package com.tl.commonlibrary.event;

/**
 * Created by JongSung on 18/2/28.
 */

public class LoginStatusEvent extends BaseEvent {
    public static final int LOGGIN = 1;
    public static final int LOGOFF = 2;
    private int status = 0;

    public LoginStatusEvent(int status) {
        super(EVENT_LOGIN_STATUS);
        this.status = status;
    }

    public boolean loggin() {
        return status == LOGGIN;
    }

    public boolean logoff() {
        return status == LOGOFF;
    }

}
